//
//  NSString+Category.h
//  GoodsManagement
//
//  Created by 车浩 on 2017/3/7.
//  Copyright © 2017年 CheHao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonCrypto.h>
#import <UIKit/UIKit.h>

@interface NSString (Category)

///MD5加密
- (id)MD5;

///返回文本高度
+ (CGFloat)heightForString:(NSString *)str fontSize:(NSInteger)fontSize width:(CGFloat)width;

//返回文本宽度
+ (CGFloat)widthForString:(NSString *)str fontSize:(NSInteger)fontSize height:(CGFloat)height;

///是否为电话
+ (BOOL)isPhone:(NSString *)str;
///是否符合 只包括汉字，字母，数字 true 不符合 false 符合
+ (BOOL)isNumLetterAndChinese:(NSString *)string showMessage:(NSString *)showMessage;
///是否含有空格
+ (BOOL)passWordTextFileisExistSpace:(NSString *)str;
///字母，数字
+ (BOOL)isPwd:(NSString *)string;
///邮箱
+ (BOOL)isMail:(NSString *)string;

@end
